package com.zstu.mall.entity;

import com.zstu.mall.common.BaseEntity;
import java.io.Serializable;

import java.util.Date;
import javax.persistence.*;

/**
 * @author     : wuyc
 * @description: upload_image
 * @date       : Created in 2019/11/24
 */
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@Table(name = "upload_image")
public class UploadImage extends BaseEntity implements Serializable {

	/**
	 * type_name_time_随机数
	 * default value: ' '
	 */
	@Column(name = "new_name", nullable = false,length = 255)
	private String newName;

	/**
	 * 用户输入名称
	 * default value: ' '
	 */
	@Column(name = "old_name", nullable = false,length = 255)
	private String oldName;

	public UploadImage() {
		super(); 
		super.status = "1"; 
		super.remark = " "; 
		super.gmtCreate = new Date(); 
		super.gmtModified = new Date(); 
		this.newName = " ";
		this.oldName = " ";
	}
	
	public String getNewName() {
		return this.newName;
	}
	
	public void setNewName(String newName) {
		this.newName = newName;
	}
	
	public String getOldName() {
		return this.oldName;
	}
	
	public void setOldName(String oldName) {
		this.oldName = oldName;
	}
}
